const getters = {
  // state为state对象
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  projects: state => state.user.projects,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  user_permissions: state => state.user.user_permissions,
  nickname: state => state.user.nickname,
  roles: state => state.user.roles,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  permission_routes: state => state.permission.routes
}
export default getters
